public class CatalogService {
 
     public static List<CustomCatalog> getCatalog() {
          List<Catalog__c> catalogList = [SELECT Catalog__c.RecordType.name, Catalog__c.RecordType.id,
          Catalog__c.Campus__r.name, Catalog__c.Program__r.name, Catalog__c.Course__c, Catalog__c.Program_Level__c FROM Catalog__c 
                  WHERE Active__c=true];
          
          List<CustomCatalog> customCatalogList = new CustomCatalog[]{};
          
          for(Catalog__c catalog : catalogList ) {
              CustomCatalog c = new CustomCatalog(catalog.RecordType.name, catalog.Program__r.name,
                                  catalog.Program_Level__c, catalog.Campus__r.name,catalog.Course__c);
              customCatalogList .add(c);
                       
          }
          System.debug('Size of catalog is ' + catalogList.size());
      return customCatalogList;
      }
}